function OnYandexMapSettingsEdit(e){if(null!=window.jsYandexCEOpener){try{window.jsYandexCEOpener.Close()}catch(t){}window.jsYandexCEOpener=null}window.jsYandexCEOpener=new JCEditorOpener(e)}function JCEditorOpener(e){this.arParams=e;this.jsOptions=this.arParams.data.split("||");var t=document.createElement("INPUT");t.type="button";t.value=this.jsOptions[1];this.arParams.oCont.appendChild(t);t.onclick=BX.delegate(this.btnClick,this);this.saveData=BX.delegate(this.__saveData,this)}JCEditorOpener.prototype.Close=function(e){if(false!==e)BX.util.PreventDefault(e);if(null!=window.jsPopup_yandex_map){window.jsPopup_yandex_map.Close()}};JCEditorOpener.prototype.btnClick=function(){this.arElements=this.arParams.getElements();if(!this.arElements)return false;if(null==window.jsPopup_yandex_map){var e="/bitrix/components/bitrix/map.yandex.view/settings/settings.php"+"?lang="+this.jsOptions[0]+"&INIT_MAP_TYPE="+BX.util.urlencode(this.arElements.INIT_MAP_TYPE.value),t="MAP_DATA="+BX.util.urlencode(this.arParams.oInput.value);window.jsPopup_yandex_map=new BX.CDialog({content_url:e,content_post:t,width:800,height:500,resizable:false})}window.jsPopup_yandex_map.Show();window.jsPopup_yandex_map.PARAMS.content_url="";return false};JCEditorOpener.prototype.__saveData=function(e,t){this.arParams.oInput.value=e;if(null!=this.arParams.oInput.onchange)this.arParams.oInput.onchange();if(t&&this.arElements.INIT_MAP_TYPE){this.arElements.INIT_MAP_TYPE.value=t;if(null!=this.arElements.INIT_MAP_TYPE.onchange)this.arElements.INIT_MAP_TYPE.onchange()}this.Close(false)};
//# sourceMappingURL=settings.map.js